package demo2;

import java.util.ArrayList;

public class test {
    public static void main(String[] args){
        ArrayList<Student> list= new ArrayList<>();
        Student stu1 = new Student("Li",12,"男");
        Student stu2 = new Student("Xu",19,"女");
        Student stu3 = new Student("Luo",1,"男");
        list.add(stu1);
        list.add(stu2);
        list.add(stu3);
        int max = StudentUtil.GetMaxAge(list);
        System.out.println(StudentUtil.GetMaxAge(list));
    }
}
